const state = {
     sellername: null,
     orderid: null,
     goodsname: null,
    };
    
    const mutations = {
     SET_SELLERNAME(state, sellername) {
      state.sellername = sellername;
     },
     SET_ORDERID(state, orderid) {
          state.orderid = orderid;
     },
     SET_GOODSNAME(state, goodsname) {
          state.goodsname = goodsname;
     },
    };
    
    const actions = {
     setSellername({ commit }, sellername) {
      commit('SET_SELLERNAME', sellername);
     },
     setOrderid({ commit }, orderid) {
          commit('SET_ORDERID', orderid);
     },
     setGoodsname({ commit }, goodsname) {
          commit('SET_GOODSNAME', goodsname);
     },
    };
    
    const getters = {
     sellername: (state) => state.sellername,
     orderid: (state) => state.orderid,
     goodsname: (state) => state.goodsname,
    };
    
    export default {
     namespaced: true,
     state,
     mutations,
     actions,
     getters,
    }; 